﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhoobearLibs.Resource.Resx
{
    public class ResourceRecordComparer : Comparer<KeyValuePair<string, string>>
    {   
        public override int Compare(KeyValuePair<string, string> x, KeyValuePair<string, string> y)
        {
            bool keyEquality = x.Key.Equals(y.Key);
            bool valueEquality = x.Value.Equals(y.Value);

            return ((keyEquality && valueEquality) == true ? 0 : -1);
        }
    }
}
